const express = require('express');
const router = express.Router();
const goodsControlle = require('../controllers/goodsController.js');

// 基本路由
router.post('/goods',goodsControlle.getAllGoods);
router.put('/addgoods',goodsControlle.createGoods);
router.delete('/delete/:id',goodsControlle.deleteGoods);
router.put('/updata/:id',goodsControlle.updateGoods);

module.exports = router;